﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CNFM_CROCODILE_LOGO.AOP.OAuth
{
    public static class Claims
    {
        public static string UserName()
        {
            string name = string.Empty;
            //var auth = HttpContext.AuthenticateAsync().Result.Principal.Claims;
            //var userName = auth.FirstOrDefault(t => t.Type.Equals(ClaimTypes.NameIdentifier))?.Value;
            //var role = auth.FirstOrDefault(t => t.Type.Equals("Role"))?.Value;
            return name;
        }
    }
}
